package jgl.vajra.kingkong.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class HomeVehicleTypeBean implements Parcelable {

    public HomeVehicleTypeBean(){

    }

    public String model;
    public String remark;
    public String fileKey;
    public int icon;
    public int displayNumber;

    public List<String> carParams;

    protected HomeVehicleTypeBean(Parcel in) {
        model = in.readString();
        remark = in.readString();
        fileKey = in.readString();
        icon = in.readInt();
        displayNumber = in.readInt();
        carParams = in.createStringArrayList();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(model);
        dest.writeString(remark);
        dest.writeString(fileKey);
        dest.writeInt(icon);
        dest.writeInt(displayNumber);
        dest.writeStringList(carParams);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<HomeVehicleTypeBean> CREATOR = new Creator<HomeVehicleTypeBean>() {
        @Override
        public HomeVehicleTypeBean createFromParcel(Parcel in) {
            return new HomeVehicleTypeBean(in);
        }

        @Override
        public HomeVehicleTypeBean[] newArray(int size) {
            return new HomeVehicleTypeBean[size];
        }
    };
}
